#ifndef BOARD_H
#define BOARD_H

#include <QGraphicsScene>

class Place;

enum PlaceState {
    F, // Free
    O, // Occupied
    _  // Illegal
};

class Board : public QGraphicsScene
{
    void addBall(int x, int y);
    Place* addPlace(int x, int y);

    static const int N = 9;
    PlaceState _board[N][N];
public:
    Board();

    PlaceState get(int row, int col) const { return _board[row][col]; }
    void set(int row, int col, PlaceState val) { _board[row][col] = val; }

    void print() const;
};

#endif // BOARD_H
